<!DOCTYPE html>
<html lang="en">
	<head>
		<meta charset="UTF-8">
		<meta name="viewport" content="width=device-width, initial-scale=1.0">
		<title>Document</title>
	</head>
	<body>
		<h1>1</h1>
		<div class="shall">
			<form name="formsearch" id="formsearch" action="/search.php" method="post" target="_self" autocomplete="off" form="">
				<div class="shall1">
					<input class="input" name="searchword" type="text" id="keyword" placeholder="输入影片名">
					<input class="ico imgbt" onchange="tijiao()" type="button" value="">
				</div>
			</form>
		</div>
	</body>
	<!-- <script src="../../newjs/newBD.js"></script> -->
	<script>
		
		
		
		function tijiao(){
			console.log(321)
		}
		
		
		
		
		
		
		
		
		var cals = document.getElementsByClassName('shall')[0].children;

		
	
	
	
	
		for(let  i = 0 ; i<cals.length; i++){
			
			console.log(cals.length)
		}
	
	
	
	
	
	
	
	
		console.log(cals)

		let ar = [];

		getDomArr('.shall', ar)



		function getDomArr(leab, ar) {

			let dom = document.querySelectorAll(leab);


			for (let i = 0; i <= dom.length; i++) {

				// console.log(dom[i])
				if (dom[i]) {

					[...dom[i].children].forEach(e => {
						console.log(e)
					})
				}

			}


			function digui(node) {

				node
			}

			// .forEach(e=>{

			// 		console.log(e)

			// })


		}










		// var domArr=[];
		// function dom(doms){
		// 	[...doms.children].forEach((e)=>{
		// 		domArr.push(e);
		// 		// console.log(e)
		// 		dom(e);
		// 	})
		// }
		// dom(cals);
		// console.log(domArr)
	</script>
</html>
